import React, { Component } from 'react'
import {withRouter} from "react-router"
import "./GoBack.less"
 class GoBack extends Component {
    render() {
        return (
            <div className="go-back" onClick={this.gobackFn.bind(this)}>
                返回上一页
            </div>
        )
    }
    gobackFn(){
        this.props.history.goBack()
    }
}
export default withRouter(GoBack)
